using UnityEngine;
using UnityEngine.UI;

public class Notify : MonoBehaviour
{
	public static Notify instance;

	[SerializeField]
	private Animation animations;

	[SerializeField]
	private Text notificationLabel;

	private void Awake()
	{
		instance = this;
	}

	public void ShowNotification(string notification)
	{
		notificationLabel.text = notification;
		if (animations.isPlaying)
		{
			animations.Stop();
		}
		animations.Play("Notification");
	}
}
